package com.allwees.bs.module.oms.constant;

import com.allwees.core.common.constant.EStatus;
import lombok.Getter;
import org.apache.commons.lang3.ArrayUtils;

@Getter
public enum EOmsOrderItemQueryType {

    WAIT_SHIP(
            EStatus.OMS_WAIT_MERCHANT_SHIP.value()
    ),

    HIS(
            EStatus.OMS_SHIPPED.value(),
            EStatus.OMS_DELIVERED.value(),
            EStatus.OMS_WAIT_RECEIVE.value(),
            EStatus.OMS_RECEIVED.value(),
            EStatus.OMS_TO_SETTLE.value(),
            EStatus.OMS_SETTLED.value()
    ),


    ALL(
            ArrayUtils.addAll(WAIT_SHIP.getStatus(), HIS.getStatus())
    )
    ;

    private Integer[] status;

    EOmsOrderItemQueryType(Integer... status) {
        this.status = status;
    }
}
